/**
 * @author fenglei.you
 */
Me.Form=function(options){
	Me.Util.propertySet.apply(this,Array.prototype.slice.call(arguments,0));	
	
	this.childs=[];
	if(options.childs){
		for(var i=0;i<options.childs.length;i++){
			var current = options.childs[i];
			
			current.parent=this;
			
			if(current.type=='button'){
				var btn = new Me.Button(current);
				this.childs.push(btn);
			}else if(current.type=='panel'){
				var panel = new Me.Panel(current);
				this.childs.push(panel);
			}
		}
	}
	
	Trace.log("form construct");
}
Me.Form.prototype.paint=function(context){
	Me.Util.paint.apply(this,arguments);
	Trace.log("form paint");
}
Me.Form.prototype.render=function(context){
	this.paint(context);
}

